package com.ruoyi.common.entity.CoreEntity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户积分兑换记录对象 exchange_records
 * 
 * @author 亢哲
 * @date 2025-08-07
 */
public class ExchangeRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 兑换记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 兑换商品id */
    @Excel(name = "兑换商品id")
    private Long exchangeId;

    /** 兑换状态 */
    @Excel(name = "兑换状态")
    private Long status;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exchangeTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setExchangeId(Long exchangeId) 
    {
        this.exchangeId = exchangeId;
    }

    public Long getExchangeId() 
    {
        return exchangeId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setExchangeTime(Date exchangeTime) 
    {
        this.exchangeTime = exchangeTime;
    }

    public Date getExchangeTime() 
    {
        return exchangeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("exchangeId", getExchangeId())
            .append("status", getStatus())
            .append("exchangeTime", getExchangeTime())
            .toString();
    }
}
